<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%--
    		s:a			:a
    		s:div			:div
    		s:if			:조건문
    		s:elseif		:다중조건문
    		s:iterator:루프문
    
    
     --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	a{text-decoration: none; color: black}
	a:HOVER {color: red}
</style>
</head>
<body>
	<center>
		<h1>내용 보기</h1>
		<table border=2 width=500 bordercolor=#d5d5d5 cellpadding="0" cellspacing="0">
			<tr>
				<td width=20%>이름</td>
				<td width=30%>${dto.name }</td>
				<td width=20%>조회수</td>
				<td width=30%>${dto.readnum }</td>
			</tr>
			<tr>
				<td width=20%>홈페이지</td>
				<td width=30%>${dto.homepage }</td>
				<td width=20%>작성일</td>
				<td width=30%><s:date name="dto.writeday" format="yyyy-MM-dd" />
				</td>
			</tr>
			<tr>
				<td width=20%>제목</td>
				<td colspan=3 align=left>${dto.subject }</td>
			</tr>
			<s:if test="dto.filesize!=0">
				<tr>
					<td width=20%>첨부파일</td>
					<td colspan=3 align=left><a
						href="download.do?fn=${dto.filename }"> ${dto.filename
							}(${dto.filesize}bytes) </a>
					</td>
				</tr>
			</s:if>
			<tr>
				<td colspan=4 align=left valign=top height=220>${dto.content }</td>
			</tr>
		</table>
		<table width=500 border=0>
			<tr>
				<td align=right>
					답글 &nbsp;
					수정 &nbsp; 
					삭제&nbsp;
					<s:a href="customer/list.jsp" theme="ajax" targets="maincontents">
						목록
					</s:a>
				</td>
		</table>
	</center>
</body>
</html>